package com.tedu.login.controller;

import com.tedu.login.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;



@Controller
public class LoginController {

    @Autowired
    LoginService loginService;
    @RequestMapping("/doLogin")
    @ResponseBody
    public String doLogin(String username,Integer password){
        // null.equals()
        System.out.println("11111111");
        return loginService.doLogin(username,password);
    }

}
